package com.ruoyi.fundingSys.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 经费信息对象 tb_funding
 * 
 * @author ruoyi
 * @date 2025-11-07
 */
public class TbFunding extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 单位id */
    @Excel(name = "单位id")
    private Long unitId;

    /** 投资年份 */
    @Excel(name = "投资年份")
    private String year;

    /** 投资份额 */
    @Excel(name = "投资份额")
    private BigDecimal amount;

    /** 投资目的 */
    @Excel(name = "投资目的")
    private String purpose;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUnitId(Long unitId) 
    {
        this.unitId = unitId;
    }

    public Long getUnitId() 
    {
        return unitId;
    }

    public void setYear(String year) 
    {
        this.year = year;
    }

    public String getYear() 
    {
        return year;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setPurpose(String purpose) 
    {
        this.purpose = purpose;
    }

    public String getPurpose() 
    {
        return purpose;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unitId", getUnitId())
            .append("year", getYear())
            .append("amount", getAmount())
            .append("purpose", getPurpose())
            .toString();
    }
}
